<?php
class AttachmentModel extends Model{
	public function path($type){
		$atta=M('Attachment');
		$where['type']=$type;
		$path=$atta->where($where)->field('path')->find();
		return $path;
	}
}